/*
** my_strcmp.c for  in /home/gueux_g/projet/code_source
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Wed Dec 12 21:55:59 2012 gregory gueux
** Last update Tue Dec 18 01:33:53 2012 gregory gueux
*/


int	my_strcmp(const char *s1, const char *s2)
{
  int i ;
  int ret;

  i = 0;
  while ( s1[i] != '\0' && s2[i] != '\0' )
    {
      ret = s1[i] - s2[i];
      if (ret != 0)
	return (ret);
      i++;
    }
  if (s1[i] == '\0' && s2[i] == '\0')
    return (0);
  else if ( s1[i] == '\0' )
    return (1);
  else
    return (-1);
}
